<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("yp","header"); ?>
<!--main-->
<script language="javascript">
  function b_query(){

	  window.location.href="/index.php?m=yp&c=index&a=list_searchcompany&searchkey="+document.getElementById("searchkey").value;
  }
</script>
<div class="main clear">
	<div class="crumbs" style="margin-bottom:0"><a href="<?php echo APP_PATH;?>">首页</a><span> > </span>找汽修</div>
	
	 <div class="box cat-data" id="PropSingle">
	   <div class="choosed"><input type="text" name="searchkey" id="searchkey"/>
	   <input type="button" value="搜索" onclick="b_query()" /></div> 
    	<div class="choosed">维修项目:
    	<a <?php if(!$catid||$catid==all) { ?> class='select'<?php } ?>  href="<?php echo $data_url_cat;?>&catid=all">全部 </a>
    	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"yp\" data=\"op=yp&tag_md5=e9918fdcff3bedfb7832ba9e9cc88696&action=get_weixiuxiangmu\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$yp_tag = pc_base::load_app_class("yp_tag", "yp");if (method_exists($yp_tag, 'get_weixiuxiangmu')) {$data = $yp_tag->get_weixiuxiangmu(array('limit'=>'20',));}?>
          <?php $n=1;if(is_array($data)) foreach($data AS $i) { ?>
    	  
    	<a <?php if($catid==$i['catid']) { ?> class='select'<?php } ?> href="<?php echo $data_url_cat;?>&catid=<?php echo $i['catid'];?>"><?php echo $i['catname'];?> </a>
    	 <?php $n++;}unset($n); ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?> 
    	 </div> 
    	<div class="choosed">地区：
    	<a <?php if(!$quyu||$quyu==all) { ?> class='select'<?php } ?> href="<?php echo $data_url_quxian;?>&quyu=all">全济南</a> 
    	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"yp\" data=\"op=yp&tag_md5=c17213f934ad43f33c7376179d8cff34&action=get_quxianquyu&pprid=3363\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$yp_tag = pc_base::load_app_class("yp_tag", "yp");if (method_exists($yp_tag, 'get_quxianquyu')) {$data = $yp_tag->get_quxianquyu(array('pprid'=>'3363','limit'=>'20',));}?>
    	 
          <?php $n=1;if(is_array($data)) foreach($data AS $i) { ?>
    	  
    	<a <?php if($quyu==$i['linkageid']) { ?> class='select'<?php } ?> href="<?php echo $data_url_cat;?>&quyu=<?php echo $i['linkageid'];?>"><?php echo $i['name'];?> </a>
    	   
    	  
    	 <?php $n++;}unset($n); ?>
        <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?> 
         
    	</div> 
    	<div class="choosed" style="height:<?php echo $qx_height;?>px;">
    	 <?php echo $fendiqu;?>
         
    	</div> 
    	
    	
    	
    </div>
    <div class="col-left picbig">
    	<div class="category-main box generic info-content">
        	<div class="title">
                <div class="orderby-select mouseover" type="select" heights="23" position="0" >
                	<div class="select"><a class="up" href="">更新时间排序</a></div>
                    <ul class="selectlist subselect_0" style="display:none;"><li><a class="null" href="">请选择排序方式</a></li><li><a class="up" href="">更新时间排序</a></li><li><a class="up" href="">诚信等级由到高到低</a></li><li><a class="down" href="">诚信等级由低到低高</a></li></ul>
                </div>
             </div>
             <table class="tblist" cellpadding="0" cellspacing="0">
            <tr >
            	
                <td class="pic"></td>
                <td class="t">店名</td>
                 <td class="tdt">在线咨询</td>
                 <td class="tdt">好评数量</td>
                  <td class="tdt">活跃度</td>
                  <td class="tdt">地图</td>
                 
            </tr>
           
           <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"yp\" data=\"op=yp&tag_md5=895b3828cdca74b90e450cb63dd9e509&action=get_company_byfenlei&catid=%24catid&searchkey=%24searchkey&quyu=%24quyu&shangq=%24shangq&num=3&cache=0&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$yp_tag = pc_base::load_app_class("yp_tag", "yp");if (method_exists($yp_tag, 'get_company_byfenlei')) {$pagesize = 3;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$yp_total = $yp_tag->count(array('catid'=>$catid,'searchkey'=>$searchkey,'quyu'=>$quyu,'shangq'=>$shangq,'limit'=>$offset.",".$pagesize,'action'=>'get_company_byfenlei',));$pages = pages($yp_total, $page, $pagesize, $urlrule);$data = $yp_tag->get_company_byfenlei(array('catid'=>$catid,'searchkey'=>$searchkey,'quyu'=>$quyu,'shangq'=>$shangq,'limit'=>$offset.",".$pagesize,'action'=>'get_company_byfenlei',));}?>
           <?php $n=1;if(is_array($data)) foreach($data AS $i) { ?>
           
           <?php $com_data=get_companyinfo($i['userid']);?>
           <?php if($com_data['status']==1) { ?>
                 
                <tr >
            	<td class="pic"><div class="img-wrap">
                        <a href="<?php echo $com_data['url'];?>" title="<?php echo $com_data['title'];?>"><img src="<?php echo $com_data['logo'];?>" title="<?php echo $com_data['title'];?>" width="112" height="92"></a>
                    </div></td>
                
                <td class="t">
                    <h2><a href="<?php echo $com_data['url'];?>" title="<?php echo $com_data['title'];?>" target="_blank"><?php echo $com_data['companyname'];?></a></h2>
                    <p>
                       主营业务： <?php echo str_cut($com_data['products'],120);?><br />
                       联系方式：<?php echo $com_data['telephone'];?><br />
					   公司地址：<?php echo $com_data['areaname'];?> <?php echo $com_data['address'];?>
					</p>
                 </td>
                 <td class="tdt">
                <?php echo $com_data['qq'];?>
                 </td>
                 <td class="tdt">
                 		好评数量
                 </td>
                 <td class="tdt">
                 		回答咨询量
                 </td>
                 <td class="tdt">
                 		地图位置
                 </td>
                </tr>
              <?php } ?>
             <?php $n++;}unset($n); ?>
              <div id="pages" class="text-c"><?php echo $pages;?></div>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>   
            </table>
         </div>
    </div>
    <div class="col-auto">
    	
        
    </div>
</div>
<?php include template('yp', 'footer'); ?>